function open_realhumantoauth(){
    layer.open({
        type: 2,
        closeBtn: 0
        ,title: '实名认证'
        ,area: ['600px', '500px']
        ,content: '/plugin/others/realhumantoauth.php?userid='+userid
    });
}
function loadingaboutmyself2(){
    fetch('./exam/getallbym.php?userid='+userid)
    .then(function (response) {
        return response.json();
    }).then(function (data) {
        if(data.code === 200){
            var resultvip = data.result;
            var facetoauth = ifopenauthface();
            if(facetoauth === 'open'){
                if(resultvip.smrz === null || resultvip.smrz === ''){
                    layer.open({
                        closeBtn: 0,
                        content: '请先进行实名认证'
                        ,btn: '立即认证'
                        ,yes: function(index, layero){
                            layer.closeAll();
                            open_realhumantoauth();
                        }
                    });
                }
            }
        }else{
            Qmsg.error('异常的模块处理');
        }})
}
loadingaboutmyself2();